import type { TableProps as AntdTableProps } from 'antd';
import { Table as AntdTable } from 'antd';
import React from 'react';

export type {
  TableColumnGroupType,
  TableColumnProps,
  TableColumnsType,
  TableColumnType,
  TablePaginationConfig,
} from 'antd';
export type TableProps<RecordType> = AntdTableProps<RecordType>;

function Table<RecordType extends object>(props: TableProps<RecordType>) {
  return <AntdTable {...props} />;
}

export default Table;
